#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:homework1_8.py
# author:wmf
# datetime:2021/3/14 20:47
# software: PyCharm
'''
this is function description
'''
# import module your need

#8 设计一个数据结构，用来存放10个员工的信息并初始化，每个员工信息包括：工号，姓名，工龄，工资；  将这10个员工，按照工资从高到低打印输出；
#   提示：可以组合使用我们的序列数据类型；

staff = [{'num':'01','name':'Tom','age':42,'salary':5000},
         {'num':'02','name':'Bob','age':46,'salary':4700},
         {'num':'03','name':'Mary','age':28,'salary':6000},
         {'num':'04','name':'Linda','age':34,'salary':4500},
         {'num':'05','name':'Jackson','age':35,'salary':4900},
         {'num':'06','name':'Coco','age':44,'salary':6500},
         {'num':'07','name':'Mika','age':33,'salary':5300},
         {'num':'08','name':'Lisa','age':35,'salary':5600},
         {'num':'09','name':'Alan','age':31,'salary':5400},
         {'num':'10','name':'Henry','age':46,'salary':6200}
         ]

max_salary = 0
list1 = []
print(type(list1))
for x in staff:
    list1.append(x['salary'])

list1.sort(reverse = True)
print(list1)